package com.magic.gre.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author: Lmoumou
 * Date: 2019-01-09 18:15
 * 文件名: ActivityBean
 * 描述:
 */
public class ActivityBean implements Parcelable {


    /**
     * id : 1090444171659952130
     * updateTime : 2019-01-30 10:58:44
     * createTime : 2019-01-30 10:58:44
     * title : 测试1234567
     * startTime : 1548777600000
     * endTime : 1548777600000
     * content : <p>时打分第三方第三方</p>
     * plainContent : 时打分第三方第三方
     * type : 1
     * applyAdr :
     * coverImage : zjgre/2019/1/30/c369a4e0-1314-48af-a19d-f059a0325886.jpg
     * isValid : 1
     * num : 196
     * actLabels : [{"id":"1078146471980204034","updateTime":null,"createTime":null,"labelName":null,"image":"Test/image/2018/12/27/9fe86c5c-71aa-4af7-adbf-1f779999d35f.png","isValid":null}]
     * dataUrl : /share_activity.html?id=1090444171659952130
     */

    private String id;
    private String updateTime;
    private String createTime;
    private String title;
    private long startTime;
    private long endTime;
    private String content;
    private String plainContent;
    private int type;
    private String applyAdr;
    private String coverImage;
    private int isValid;
    private int num;
    private String dataUrl;
//    private List<ActLabelsBean> actLabels;
    private String applyImage;

    public String getApplyImage() {
        return applyImage;
    }

    public void setApplyImage(String applyImage) {
        this.applyImage = applyImage;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPlainContent() {
        return plainContent;
    }

    public void setPlainContent(String plainContent) {
        this.plainContent = plainContent;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getApplyAdr() {
        return applyAdr;
    }

    public void setApplyAdr(String applyAdr) {
        this.applyAdr = applyAdr;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public int getIsValid() {
        return isValid;
    }

    public void setIsValid(int isValid) {
        this.isValid = isValid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getDataUrl() {
        return dataUrl;
    }

    public void setDataUrl(String dataUrl) {
        this.dataUrl = dataUrl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.updateTime);
        dest.writeString(this.createTime);
        dest.writeString(this.title);
        dest.writeLong(this.startTime);
        dest.writeLong(this.endTime);
        dest.writeString(this.content);
        dest.writeString(this.plainContent);
        dest.writeInt(this.type);
        dest.writeString(this.applyAdr);
        dest.writeString(this.coverImage);
        dest.writeInt(this.isValid);
        dest.writeInt(this.num);
        dest.writeString(this.dataUrl);
        dest.writeString(this.applyImage);
    }

    public ActivityBean() {
    }

    protected ActivityBean(Parcel in) {
        this.id = in.readString();
        this.updateTime = in.readString();
        this.createTime = in.readString();
        this.title = in.readString();
        this.startTime = in.readLong();
        this.endTime = in.readLong();
        this.content = in.readString();
        this.plainContent = in.readString();
        this.type = in.readInt();
        this.applyAdr = in.readString();
        this.coverImage = in.readString();
        this.isValid = in.readInt();
        this.num = in.readInt();
        this.dataUrl = in.readString();
        this.applyImage = in.readString();
    }

    public static final Parcelable.Creator<ActivityBean> CREATOR = new Parcelable.Creator<ActivityBean>() {
        @Override
        public ActivityBean createFromParcel(Parcel source) {
            return new ActivityBean(source);
        }

        @Override
        public ActivityBean[] newArray(int size) {
            return new ActivityBean[size];
        }
    };
}
